package videoExercises;

import java.util.LinkedHashSet;

public class Test3 {
    public static void main(String[] args) {

        Studengt1 a = new Studengt1("齐齐乐",25);
        Studengt1 b = new Studengt1("王建国",45);
        Studengt1 c = new Studengt1("程开明",26);
        LinkedHashSet<Studengt1> lin =new LinkedHashSet<>();
        System.out.println(lin.add(b));
        System.out.println(lin.add(c));
        System.out.println(lin.add(a));
        System.out.println(lin.add(c));

        System.out.println(lin);

    }
}
